package com.zhongli.devplatform.po.sys;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadChapterExercises")
@Data
@TableName(value = "read_chapter_exercises")
public class ReadChapterExercisesPO {
    /**
     * 章节练习题id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="章节练习题id")
    private Integer id;

    /**
     * 学生编号
     */
    @TableField(value = "student_id")
    @ApiModelProperty(value="学生编号")
    private Integer studentId;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value="开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="结束时间")
    private Date endTime;

    /**
     * 正确率
     */
    @TableField(value = "correct_rate",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="正确率")
    private Float correctRate;

    /**
     * 错误个数
     */
    @TableField(value = "error_num",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="错误个数")
    private Integer errorNum;

    /**
     * 正确个数
     */
    @TableField(value = "correct_num",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="正确个数")
    private Integer correctNum;

    /**
     * 该章节练习 对应的知识点
     *
     */
    @TableField(value = "knowledge_id")
    @ApiModelProperty(value="正确个数")
    private Integer knowledgeId;

    @TableField(exist = false)
    private Integer duration;
}
